import request from '@/utils/request/request';

/**
 * 企业钱包
 */

// 获取钱包详情
export function getWalletDetail(params) {
  return request.post('/enterprise/wallet/getwalletdetail', params);
}

// 设置支付密码时获取的验证码
export function sendPayPasswordSetCode(params) {
  return request.post('/enterprise/wallet/sendpaypasswordsetcode', params);
}

// 设置支付密码
export function commitPayPasswordSet(params) {
  return request.post('/enterprise/wallet/commitpaypasswordset', params);
}

// 修改支付密码
export function updatePayPassword(params) {
  return request.post('/enterprise/wallet/updatepaypassword', params);
}

// 忘记支付密码时获取的验证码
export function sendPayPasswordForgetCode(params) {
  return request.post('/enterprise/wallet/sendpaypasswordforgetcode', params);
}

// 忘记支付密码
export function forgetPayPassword(params) {
  return request.post('/enterprise/wallet/forgetpaypassword', params);
}

// 创建充值企业算力值订单
export function createEnterpriseTelepathyOrder(params) {
  return request.post(
    '/enterprise/wallet/createenterprisetelepathyorder',
    params
  );
}

// 创建充值企业钱包订单
export function createEnterpriseWalletOrder(params) {
  return request.post('/enterprise/wallet/createenterprisewalletorder', params);
}

// 获取钱包额度下发列表
export function getWalletLimitPage(params) {
  return request.post('/enterprise/wallet/getwalletlimitpage', params);
}

// 保存/下发子账号钱包额度
export function issuedWalletLimit(params) {
  return request.post('/enterprise/wallet/issuedwalletlimit', params);
}

// 获取钱包额度回收列表
export function getWalletLimitRecyclePage(params) {
  return request.post('/enterprise/wallet/getwalletlimitrecyclepage', params);
}

// 保存/回收子账号钱包额度
export function recycleWalletLimit(params) {
  return request.post('/enterprise/wallet/recyclewalletlimit', params);
}

// 获取企业钱包额度使用情况
export function getWalletLimitUsageInfo(params) {
  return request.post('/enterprise/wallet/getwalletlimitusageinfo', params);
}

// 获取企业算力值额度使用情况
export function getTelepathyLimitUsageInfo(params) {
  return request.post('/enterprise/wallet/gettelepathylimitusageinfo', params);
}

// 获取算力值额度下发列表
export function getTelepathyLimitPage(params) {
  return request.post('/enterprise/wallet/gettelepathylimitpage', params);
}

// 获取算力值额度回收列表
export function getTelepathyLimitRecyclePage(params) {
  return request.post(
    '/enterprise/wallet/gettelepathylimitrecyclepage',
    params
  );
}

// 保存/下发子账号算力值额度
export function issuedTelepathyLimit(params) {
  return request.post('/enterprise/wallet/issuedtelepathylimit', params);
}

// 保存/回收子账号算力值额度
export function recycleTelepathyLimit(params) {
  return request.post('/enterprise/wallet/recycletelepathylimit', params);
}

/**
 * 企业认证
 */

// 获取认证信息详情
export function getAuthInfoDetail(params) {
  return request.post('/enterprise/auth/getauthinfodetail', params);
}

// 保存认证信息
export function draftAuthInfo(params) {
  return request.post('/enterprise/auth/draftauthinfo', params);
}

// 提交认证信息
export function submitAuthInfo(params) {
  return request.post('/enterprise/auth/submitauthinfo', params);
}
